package com.hiwhitley.easy.day06;

/**
 * Created by hiwhitley on 2016/8/6.
 */
public class NumberOf1Test {
    public static int NumberOf1(int n) {
        return Integer.bitCount(n);
    }

    public static void main(String[] args) {
        System.out.println(Integer.toBinaryString(100));
        System.out.println(NumberOf1(100));
    }
}
